package com.taorenqi.data.service;

import com.taorenqi.data.common.BasePageableResponse;
import com.taorenqi.data.common.BaseResponse;
import com.taorenqi.data.entity.payment.AliPayResponseEntity;
import com.taorenqi.data.entity.payment.WXPayResponseEntity;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by eric on 2017/9/3.
 */

public interface PaymentDataService {

    //调起微信支付
    @FormUrlEncoded
    @POST("pay/wxpay")
    Observable<BaseResponse<WXPayResponseEntity>> postWxPay(@Field("type") int type, @Field("itemId") int discussId, @Field("toUid") int toUid, @Field("title") String title);

    //支付宝支付G币
    @FormUrlEncoded
    @POST("addRecharge")
    Observable<BaseResponse<BasePageableResponse<AliPayResponseEntity>>> postAliPayGb(
            @Field("shop_rechage_money") String money,
            @Field("shop_bank") int type,
            @Field("sign") String sign);

    //支付宝支付Vip充值
    @FormUrlEncoded
    @POST("addRechargVip")
    Observable<BaseResponse<BasePageableResponse<AliPayResponseEntity>>> postAliPayVip(
            @Field("attrNo") String attrNo,
            @Field("shop_bank") int type,
            @Field("sign") String sign);
}
